<?php

declare(strict_types=1);

use Yansongda\Pay\Pay;

return [
    'alipay' => [
        'default' => [
            // 必填-支付宝分配的 app_id
            'app_id' => '2021004189634756',
            // 必填-应用私钥 字符串或路径
            'app_secret_cert' => 'MIIEvwIBADANBgkqhkiG9w0BAQEFAASCBKkwggSlAgEAAoIBAQC2U9cLlI1a6gZd8g4E80dL1mRp21MUooR2VOhe5xuSJ5TZOONBs5eF3v6+pRYam54wEipOE2FxKzVU2W25E3T6dHvtVn1iJ6Z7wLV1EczaBiDgiXeVaHvBJ7dNy0tlsLRoVE8ffN33rDjiB9RjKXSQzWdVWP3FLFZUVQTNFpvCUm/ocM3gH55bUcjLpByntkm9YJmFNm7ZJDiRNhnMhFCcibt5cUkKtJZaJcgHL+Tx/kt2XPD2EwFzaZ1HQTpKOBiPeGMZJl6B2jNBrQj0XBkf4YqDKZC126PrP+6XJ61NE2cQ7wSEEPkP3RmdKixdPBLXWEu8RYIqkKuSm3RRgxbtAgMBAAECggEBAIPmZTTQc+5oTNDb0n6MTHC1mZDnBNRxuagtRqmZQV3bWphGykj2llBXgS0EGtiG6cpW6dnvtVd8bamDXhg81ix15k1Ne4ltq8ftIpidlvfG5TPq3uLsYlLa24Xg4xue2PR8wXzDBYUuRzxlc6WFEPnMTsv0hCmHKLD7jGydxXKunTxe4c9QZiom+FFq6adRMEKnFsNmfVyJn8+kJB4N3LF4lZOG1SYo6bEBfxPAsmb0BPjr89siNC8TGSpx+cI0lG/eBVmdsJAkUHeSBt51yhJ0ybJrhgQRbLdGbUr0zWVSpHYt1zODJa4TURPRDMJ7HkmH0MgCnq/ttEhPDwWOxBUCgYEA5+toSWdu9qGQqcdVgWU5HJd/hPt3pmroYUz+Dyo7UEsRwEhqK1t57PqjQM2S+IyKJJAxG9F5FjlKKjy1rzAGHdirMpDPiPbA4cnYfxu7kvYDQdZ8IdueTzprt4Af1Iq/w++d/SllwsJKAeJAxajS5S3Vy20r715bShcFpkwSq8MCgYEAyUI9O5INAdd//+LW0lLRdJihItKfRa9MhLHLBm01ETu9PdPHsbFVq9HNT+ZFgjRWNizEEIANxVCknN/RPt6zYen+GRAA8oH2pOiZF4zpEfJjZM4l+f3JwPWlXuTIE12WGhmsqcLbf+dVVjVECR28Zeq/QBTwURkQbiUMq2l0948CgYEAlRk1uYNCxlJGY7AgG4kM94G6XK8iVB4E+ZD7AJrg+RTZ+6lSgD9WGnFkBSRkqWAI68q7l6vK0evQ72iKUW9pb0S9g0uv8NjaVg5jHgyhQbDhlTEkKsw7caoYWCeJzyXIdVoWUwyLPHOWCrH/fFO2Cdq2yQqNpV0fCXnVivz7P+sCgYEAwW5Ug8ifj8GbWEigx4ypmzKGzH06bzNIi9CFnSug8WtFOwMszu/tszH17nEXJUlAAtmLp4ArvBUB4XSMG6zXI6hNe7ER+AJJF74mRag86e7Y8K3heiAdpMNzqXyhf1tXRMagWJjbdlbUggK33TsjM6EnJ2P4hTldvT8Gqki1DqkCgYBHB/uUzJLW72lRRDwf9rQ6SdhFJS/nBlXkRYS8e8lUoFkmtYjNH6xmvbaaDHipQu9/U/UJJyLHxtVhuHrY45PR2diE6RJ6MlbtsaQDB76tE2FkR4w2USK5xus3NoSEmM7UsnfULRqqzatZb0TQ+BT79T2IW0BLqBTzravk/ZaBCA==',
            // 必填-应用公钥证书 路径
            'app_public_cert_path' => '/www/wwwroot/jiaotou_second/storage/alipay/appCertPublicKey_2021004189634756.crt',
            // 必填-支付宝公钥证书 路径
            'alipay_public_cert_path' => '/www/wwwroot/jiaotou_second/storage/alipay/alipayCertPublicKey_RSA2.crt',
            // 必填-支付宝根证书 路径
            'alipay_root_cert_path' => '/www/wwwroot/jiaotou_second/storage/alipay/alipayRootCert.crt',
            'return_url' => \Util\Common::MAIN_HOST,
            'notify_url' => \Util\Common::MAIN_HOST . '/user/order/ali_notify',
            // 选填-服务商模式下的服务商 id，当 mode 为 Pay::MODE_SERVICE 时使用该参数
            'service_provider_id' => '',
            // 选填-默认为正常模式。可选为： MODE_NORMAL, MODE_SANDBOX, MODE_SERVICE
            'mode' => Pay::MODE_NORMAL,
        ],
    ],
    'wechat' => [
        'default' => [
            // 必填-商户号
            'mch_id' => '1696036597',
            // 必填-商户秘钥
            'mch_secret_key' => '98uu8ru8w0d9kc82ijr8uu8djek9id92',
            // 必填-商户私钥 字符串或路径
            'mch_secret_cert' => '/www/wwwroot/jiaotou_second/storage/cert/apiclient_key.pem',
            // 必填-商户公钥证书路径
            'mch_public_cert_path' => '/www/wwwroot/jiaotou_second/storage/cert/apiclient_cert.pem',
            // 必填
            'notify_url' => 'https://'.\Util\Common::MAIN_HOST.'/user/order/wx_notify',
            // 选填-公众号 的 app_id
            'mp_app_id' => 'wxefaaba48e16c9073',
            // 选填-小程序 的 app_id
            'mini_app_id' => 'wxefaaba48e16c9073',
            // 选填-app 的 app_id
            'app_id' => '',
            // 选填-合单 app_id
            'combine_app_id' => '',
            // 选填-合单商户号
            'combine_mch_id' => '',
            // 选填-服务商模式下，子公众号 的 app_id
            'sub_mp_app_id' => '',
            // 选填-服务商模式下，子 app 的 app_id
            'sub_app_id' => '',
            // 选填-服务商模式下，子小程序 的 app_id
            'sub_mini_app_id' => '',
            // 选填-服务商模式下，子商户id
            'sub_mch_id' => '',
            // 选填-微信平台公钥证书路径, optional，强烈建议 php-fpm 模式下配置此参数
//                'wechat_public_cert_path' => [
//                    '45F59D4DABF31918AFCEC556D5D2C6E376675D57' => __DIR__.'/Cert/wechatpay_45F***D57.pem',
//                ],
            // 选填-默认为正常模式。可选为： MODE_NORMAL, MODE_SERVICE
            'mode' => Pay::MODE_NORMAL,
        ]
    ],
    'http' => [ // optional
        'timeout' => 5.0,
        'connect_timeout' => 5.0,
        // 更多配置项请参考 [Guzzle](https://guzzle-cn.readthedocs.io/zh_CN/latest/request-options.html)
    ],
    // optional，默认 warning；日志路径为：sys_get_temp_dir().'/logs/yansongda.pay.log'
    'logger' => [
        'enable' => false,
        'file' => null,
        'level' => 'debug',
        'type' => 'single', // optional, 可选 daily.
        'max_file' => 30,
    ],
];
